package com.alan.netty.rpc.common;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import io.protostuff.WireFormat;
import lombok.Data;

/**
 * @author weiBin
 * @date 2018/11/27
 */
@Data
public class RpcResponse {
    @Protobuf(fieldType = FieldType.INT32, order = 0)
    private String id;
    @Protobuf(fieldType = FieldType.STRING, order = 1)
    private String serviceName;
    @Protobuf(fieldType = FieldType.STRING, order = 2)
    private String methodName;
    @Protobuf(fieldType = FieldType.OBJECT, order = 3)
    private Object result;
}
